<head><%= stylesheet_link_tag 'scaffolds' %></head>
<center><h1>Listing sessions</h1><br /><br />

<table>
  <tr>
    <th>Course</th>
    <th>Professor</th>
    <th>Date, Time & Location</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @sessions.each do |session| %>
  <tr>
    <td><%= session.course %></td>
    <td><%= session.professor %></td>
    <td><%= session.info %></td>
    <td><%= link_to 'Show', session %></td>
    <td><%= link_to 'Modify', edit_session_path(session) %></td>
    <td><%= link_to 'Delete', session, :method => :delete, :data => { :confirm => 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<h3>Can't find a session that works for you?<br /><%= link_to 'Create one!', new_session_path %></h3>

<br /><br />

<h2><%= link_to "Logout", root_path %></h2><br /><br />

Powered by<br />
<img src="http://www.cip.gatech.edu/system/files/gtmob_logo.png" /></center>